﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
using FireZone.NativeWMDMInteface;

namespace FireZone.DataStructure
{
    internal class PhotoItem : MTPStorageItem
    {
        private static IDictionary<string, WMDM_FORMATCODE> _fileExtensions = new Dictionary<string, WMDM_FORMATCODE>(StringComparer.OrdinalIgnoreCase) 
        { 
            { ".jpg", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_JP2 }, 
            { ".bmp", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_BMP }, 
            { ".png", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_PNG }, 
            { ".gif", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_GIF }, 
            { ".jpeg", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_JP2 }, 
            { ".tiff", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_TIFF }, 
            { ".tif", WMDM_FORMATCODE.WMDM_FORMATCODE_IMAGE_TIFF }, 
        };

        private static IDictionary<PropertyKey, string> _visibleColumns =  new Dictionary<PropertyKey, string>
        {
            { SystemProperties.System.Image.VerticalSize, WMDM_DATATYPE_DESC.g_wszWMDMHeight },
            { SystemProperties.System.Image.HorizontalSize, WMDM_DATATYPE_DESC.g_wszWMDMWidth },
            { SystemProperties.System.FileName, WMDM_DATATYPE_DESC.g_wszWMDMFileName },
            { SystemProperties.System.Size, WMDM_DATATYPE_DESC.g_wszWMDMFileSize},
            { SystemProperties.System.DateModified, WMDM_DATATYPE_DESC.g_wszWMDMFileCreationDate},
        }; 
        public new static IDictionary<string, WMDM_FORMATCODE> FileExtensions
        {
            get
            {
                return _fileExtensions;
            }
        }

        public new static IDictionary<PropertyKey, string> VisibleColumns
        {
            get
            {
                return _visibleColumns;
            }
        }
    }
}
